home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Graphics Unleashed
/
PC Graphics Unleashed.iso
/
ch11
/
demo.pi
< prev
next >
Wrap
Text File
|
1994-06-10
|
1KB
|
74 lines
//DEMO.PI
include "colors.inc"
include "texture.inc"
viewpoint {
from <0, 1.0, -5>
at <0.0, 0.0, 0.0>
up <0.0, 1.0, 0.0>
angle 45
resolution 200,200
aspect 1.0
}
// LIGHT_SOURCE
light <0, 0, -100>
light <50, 50, -50>
background lightgrey
//PLATE
object {
polygon 4, <-1,0,-1>, <1,0,-1>, <1,0,1>, <-1,0,1>
//rotate <-90, 0, 0>
translate <0,-1.5, -0.2>
texture {
checker matte_white, matte_black
scale <0.5, 0.5, 0.5>
}
}
//BOX
object {
box <-1, -1, -1>, <1, 1, 1>
scale <0.5, 0.5, 0.5>
rotate <-10, 10, 0>
shiny_green
}
//CYLINDER
object {
cylinder <0,0,0>, <0,0.4,0>, 0.4
rotate <-15,0,0>
translate <-0.8,1.0,0>
wooden
}
//TORUS
object {
torus 0.5, 0.1, <0,0,0>, <0,1,0>
rotate <-30,0,-10>
translate <0.7, 1.4, 0>
white_marble
}
//CONE
object {
cone <0.0, -1, 0.0>, 0.5, <0.0, 0.0, 0.0>, 0.0
translate <1.4, 0.48, 0>
shiny_blue
}
//SPHERE
object {
sphere < -0.96, 0, -1.12>, 0.25
shiny_red
}